package com.tolerate.managespringboot.exception;


import lombok.Getter;

/**
 * 自定义业务异常类
 */
@Getter
public class BusinessException extends RuntimeException {

    private Integer code;
    private String msg;

    public BusinessException() {
        super();
    }

    public BusinessException(Integer code, String msg) {
        super(msg); // 调用RuntimeException的构造方法
        this.code = code;
    }
}
